package org.vic.strategy.demo02;

/**
 * Created by VIC.Huang on 2016/8/24.
 */
public class Client {
    public static void main(String[] args) {
        Context context = new Context();
        context.setStrategy((new ConcreteStrategies()).new ConcreteStrategyA());
        context.method();

        context.setStrategy((new ConcreteStrategies()).new ConcreteStrategyB());
        context.method();

        context.setStrategy((new ConcreteStrategies()).new ConcreteStrategyC());
        context.method();
    }
}
